<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<table id="weixinUserData"></table>

<script type="text/javascript">
var typeButtonData=undefined;
weixinTypeDate=$('#weixinUserData').datagrid({
	url:'weixinUserInfo/selectUserDataByPage.do',
	striped:true,
	fit:true,
	striped : true,
	collapsible : true,//显示可折叠按钮
	loadMsg:"正在加载中...",
	pagination:true,
	pageNumber:1,
	pageSize:10,
	pageList:[10,20,30,40,50],
	remoteSort:false,
/* 	toolbar:"#tweixinUserData_bar", */
	columns:[[
	  		{field:'uid',sortable:true,align:'center',checkbox:true},
	  		{field:'headimgurl',title:'微信头像',width:80,align:'center',
	  			formatter: function(value,row,index){
						return "<img width='60px' height='60px' src='"+row.headimgurl+"'>";
				} 
	  		},
	  		{field:'nickname',title:'昵称',width:100,align:'center'},
	  		{field:'sex',title:'性别',width:50,align:'center',editor:'text',
	  			formatter: function(value,row,index){
	  				if(row.sex==0){
	  					return "未知";
	  				}else if(row.sex==1){
	  					return "男";
	  					}
					return "女";
			   } 	
	  		},
	  		{field:'addr',title:'地址信息',width:100,align:'center'},
	  		{field:'language',title:'语言',width:80,align:'center'},
	  		{field:'subscribe_time',title:'上次关注时间',width:180,align:'center'},
	  		{field:'subStatus',title:'当前是否关注',width:80,align:'center',
	  			formatter: function(value,row,index){
	  				if(row.subStatus==1){
	  					return "已关注";
	  				}
					return "未关注";
			   } 
	  		},
	  		{field:'realName',title:'真实姓名',width:80,align:'center'},
	  		{field:'tel',title:'联系方式',width:80,align:'center'},
	  		{field:'university',title:'所在学校',width:80,align:'center'},
	  		{field:'major',title:'专业方向',width:80,align:'center'},
	  		{field:'remark',title:'备注信息',width:150,align:'center'}
	  		]]
	
});


</script>